package com.woniu.zsd.merchant.mapper;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.woniu.dto.ReplyListDto;
import com.woniu.form.QueryReplyForm;
import com.woniu.zsd.merchant.entity.Reply;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2025-03-27
 */
public interface ReplyMapper extends BaseMapper<Reply> {

    Page<ReplyListDto> replyList(@Param("page") Page<Reply> page, @Param("content") String content, @Param("startTime") DateTime startTime, @Param("endTime") DateTime endTime, @Param("siteId") Integer siteId);

    void addComment(@Param("userId") Integer userId, @Param("adminId") Integer adminId, @Param("siteId") Integer siteId, @Param("creatTime") DateTime creatTime, @Param("content") String content);

    void addReply(@Param("userId") Integer userId, @Param("adminId") Integer adminId, @Param("siteId") Integer siteId, @Param("commentId") Integer commentId, @Param("creatTime") DateTime creatTime, @Param("content") String content);

    void addSubReply(@Param("userId") Integer userId, @Param("adminId") Integer adminId, @Param("siteId") Integer siteId, @Param("commentId") Integer commentId, @Param("parentId") Integer parentId, @Param("creatTime") DateTime creatTime, @Param("content") String content);
}